package com.wlyuan.open.dto;

import com.wlyuan.open.OpenBaseSyncDTO;
import com.wlyuan.open.dto.order.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author yuanzheng
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class OpenOrderSyncDTO extends OpenBaseSyncDTO implements Serializable {

    private static final long serialVersionUID = -2649171945476135056L;
    private Long orderId;

    @ApiModelProperty("订单基本信息")
    private OrderInfoDTO info;
    @ApiModelProperty("订单发货方信息")
    private OrderFromDTO from;
    @ApiModelProperty("订单收货方信息")
    private OrderToDTO to;
    @ApiModelProperty("车辆信息")
    private OrderVehicleDTO vehicle;
    @ApiModelProperty("运输要求")
    private OrderRequirementDTO requirement;
    @ApiModelProperty("订单物品信息")
    private List<OrderGoodsDTO> goodsList;

    @ApiModelProperty("订单附件信息")
    private List<OrderAttachDTO> attachments;
    @ApiModelProperty("订单交通信息")
    private List<OrderTransportDTO> transports;
    @ApiModelProperty("电子回单信息")
    private OrderReceiptDeviceDTO orderReceiptDevice;

}
